gtkrange: Fix copy/paste error
authorBenjamin Otte <otte@redhat.com>
Tue, 25 Nov 2014 22:12:08 +0000 (23:12 +0100)
committerBenjamin Otte <otte@redhat.com>
Wed, 26 Nov 2014 12:53:57 +0000 (13:53 +0100)
When factoring out a function in
b88584e7bae9bacbda8bd0d9868cbe50eb8e218d I forgot to adapt these values.

gtk/gtkrange.c

index 0604207f3bdef282671306eb0b17be369af953e2..9199d5292f86c9cfecf6f4cc633d10854913c4e6 100644 (file)
@@ -3599,8 +3599,8 @@ gtk_range_compute_slider_position (GtkRange     *range,
       /* Slider fits into the trough, with stepper_spacing on either side,
        * and the size/position based on the adjustment or fixed, depending.
        */
-      priv->slider.y = priv->trough.y + trough_border;
-      priv->slider.height = priv->trough.height - trough_border * 2;
+      slider_rect->y = priv->trough.y + trough_border;
+      slider_rect->height = priv->trough.height - trough_border * 2;
 
       /* Compute slider position/length */
       left = priv->trough.x;
@@ -3639,8 +3639,8 @@ gtk_range_compute_slider_position (GtkRange     *range,
       if (should_invert (range))
         x = right - (x - left + width);
       
-      priv->slider.x = x;
-      priv->slider.width = width;
+      slider_rect->x = x;
+      slider_rect->width = width;
     }
 }